const KoaRouter = require('@koa/router')
const { verifyAuthorization } = require('../middleware/login.middleware')
const commentRouter = new KoaRouter({ prefix: '/comment' })
const commentController = require('../controller/comment.controller')

// 增： 新增评论
commentRouter.post('/', verifyAuthorization, commentController.create)
// 增： 回复评论
commentRouter.post('/reply', verifyAuthorization, commentController.reply)


module.exports = commentRouter 